CREATE TABLE [dbo].[DnnProduct_UrlLog]
(
[UrlLogID] [int] NOT NULL IDENTITY(1, 1),
[UrlTrackingID] [int] NOT NULL,
[ClickDate] [datetime] NOT NULL,
[UserID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_UrlLog] ADD CONSTRAINT [PK_DnnProduct_UrlLog] PRIMARY KEY CLUSTERED  ([UrlLogID]) WITH (FILLFACTOR=85) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_UrlLog] WITH NOCHECK ADD CONSTRAINT [FK_DnnProduct_UrlLog_DnnProduct_UrlTracking] FOREIGN KEY ([UrlTrackingID]) REFERENCES [dbo].[DnnProduct_UrlTracking] ([UrlTrackingID]) ON DELETE CASCADE NOT FOR REPLICATION
GO
